package com.oa.admin.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.joneying.common.web.response.Resp;
import com.oa.admin.dto.CollarUseApplyAddDTO;
import com.oa.admin.dto.CollarUseApplyListDTO;
import com.oa.admin.entity.CollarUseApply;
import com.oa.admin.vo.CollarUseApplyDetailsVO;
import com.oa.admin.vo.InventoryUserListVO;
import com.oa.core.PageResult;
import com.oa.core.exception.BusinessException;
import com.oa.core.exception.DataIsEmptyException;

import java.util.List;

public interface ICollarUseApplyService extends IService<CollarUseApply> {

    PageResult<InventoryUserListVO> findInventoryUserList(CollarUseApplyListDTO collarUseApplyListDTO);

    PageResult<InventoryUserListVO> findInventoryUserListApply(CollarUseApplyListDTO collarUseApplyListDTO);

    CollarUseApplyDetailsVO findCollarUseApplyDetails(String id);

    Resp add(String userId, CollarUseApplyAddDTO collarUseApplyAddDTO) throws DataIsEmptyException, BusinessException;
}
